package com.cssw.fyzb.core.model.dodb;

import com.cssw.fyzb.core.model.dodb.base.BaseUser;
import com.ydn.dbframe.kit.StrKit;

/**
 *
 */
@SuppressWarnings("serial")
public class User extends BaseUser<User> {
    public static final User dao = new User().dao();

    //用户状态 1-正常 2-冻结/锁定
    public static final String STATUS_NORMAL = "1";
    public static final String STATUS_FROZEN = "2";

    //是否实名认证完成
    public static final String FACE_AUTH_YES = "1";
    public static final String FACE_AUTH_NO = "0";

    // 是否实名支付
    public static final String AUTH_PAY_YES = "1";
    public static final String AUTH_PAY_NO = "0";

    //是否实名3要素验证完成
    public static final String REAL_AUTH_YES = "1";
    public static final String REAL_AUTH_NO = "0";

    //是否支付认证完成
    public static final String PAY_AUTH_YES = "1";
    public static final String PAY_AUTH_NO = "0";

    //是否完成实名
    public static final String IS_REAL_YES = "1";
    public static final String IS_REAL_NO = "0";

    public static final String SEX_M = "1";
    public static final String SEX_W = "2";

    //是否人脸认证完成
    public static final String FACE_YES = "1";
    public static final String FACE_NO = "0";

    //是否vip会员完成
    public static final String VIP_YES = "1";
    public static final String VIP_NO = "0";

    public boolean isNormal() {
        return StrKit.equals(getStatus(), STATUS_NORMAL);
    }

    public boolean isFrozen() {
        return StrKit.equals(getStatus(), STATUS_FROZEN);
    }

    public boolean isFaceAuth() {
        return StrKit.equals(FACE_AUTH_YES, getFaceAuth());
    }

    public boolean isPayAuth() {
        return StrKit.equals(PAY_AUTH_YES, getAuthPay());
    }

    public boolean isFace() {
        return StrKit.equals(FACE_YES, getFace());
    }

    public boolean isVip() {
        return StrKit.equals(VIP_YES, getVip());
    }


}
